/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.gt.entity.GtForestPeople;
import com.thinkgem.jeesite.modules.gt.dao.GtForestPeopleDao;

/**
 * 经济林扶贫人信息Service
 * @author zad
 * @version 2018-03-26
 */
@Service
@Transactional(readOnly = true)
public class GtForestPeopleService extends CrudService<GtForestPeopleDao, GtForestPeople> {

	public GtForestPeople get(String id) {
		return super.get(id);
	}
	
	public List<GtForestPeople> findList(GtForestPeople gtForestPeople) {
		return super.findList(gtForestPeople);
	}
	
	public Page<GtForestPeople> findPage(Page<GtForestPeople> page, GtForestPeople gtForestPeople) {
		return super.findPage(page, gtForestPeople);
	}
	
	@Transactional(readOnly = false)
	public void save(GtForestPeople gtForestPeople) {
		super.save(gtForestPeople);
	}
	
	@Transactional(readOnly = false)
	public void delete(GtForestPeople gtForestPeople) {
		super.delete(gtForestPeople);
	}
	
	@Transactional(readOnly = false)
	public void deleteByForestId(String forestId) {
		super.dao.deleteByForestId(forestId);
	}
	
	// 导出时，对于没有录入帮扶带动人口信息的经济林也一块导出
	public List<GtForestPeople> findListForExport(GtForestPeople forestPeople)
	{
		return super.dao.findListForExport(forestPeople);
	}
	
	// 批量插入奖品信息
	public int insertList(List<GtForestPeople> forestPeopleList)
	{
		return super.dao.insertList(forestPeopleList);
	}
}